package com.zx.cloud.domain;

import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zx.cloud.model.BasicDomain;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * sys_role-角色
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler",
		"fieldHandler" }, ignoreUnknown = true)
public class Role extends BasicDomain {

	private static final long serialVersionUID = 1L;

	/**
	 * 角色名称
	 */
	@ApiModelProperty(value = "角色名称")
	private String name;
	/**
	 * 角色描述
	 */
	@ApiModelProperty(value = "角色描述")
	private String remark;
	/**
	 * 记录生成人
	 */
	@ApiModelProperty(value = "记录生成人")
	private String createUser;
	/**
	 * 记录生成时间
	 */
	@ApiModelProperty(value = "记录生成时间")
	private OffsetDateTime createDate;
	/**
	 * 最后更新人
	 */
	@ApiModelProperty(value = "最后更新人")
	private String updateUser;
	/**
	 * 最后更新时间
	 */
	@ApiModelProperty(value = "最后更新时间")
	private OffsetDateTime updateDate;
	/**
	 * 0:正常,1:删除,1:锁定
	 */
	@ApiModelProperty(value = "0:正常,1:删除,1:锁定")
	private Integer status;
	/**
	 * 权限id
	 */
	@ApiModelProperty(value = "权限信息")
	private List<Long> resourceIds = new ArrayList<Long>();
	
	public List<Long> getResourceIds() {
		return resourceIds;
	}

	public void setResourceIds(List<Long> resourceIds) {
		this.resourceIds = resourceIds;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Role() {

	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public OffsetDateTime getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(OffsetDateTime createDate) {
		this.createDate = createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public OffsetDateTime getUpdateDate() {
		return this.updateDate;
	}

	public void setUpdateDate(OffsetDateTime updateDate) {
		this.updateDate = updateDate;
	}

}
